package controller.action;

import java.io.File;

import model.service.ExamService;

import com.opensymphony.xwork2.ActionSupport;

public class SaveExam extends ActionSupport{
	private String result;
	private File file; 
	private String fileName;
	private ExamService examService;
	public String getResult() {
		return result;
	}
	public void setResult(String result) {
		this.result = result;
	}
	public File getFile() {
		return file;
	}
	public void setFile(File file) {
		this.file = file;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public ExamService getExamService() {
		return examService;
	}
	public void setExamService(ExamService examService) {
		this.examService = examService;
	}
	
	public String saveExam(){
		result = examService.ExcelUpload(file, fileName);
		return SUCCESS;
	}
}
